POV-Ray : Newsgroups : povray.newusers : distorting superellipsoid : Re: distorting superellipsoid Server Time
30 Jul 2024 12:32:26 EDT (-0400)
  Re: distorting superellipsoid  
From: Warp
Date: 1 Apr 2004 07:02:28
Message: <406c04d4@news.povray.org>
ehmdjii <ehm### [at] spamgmxnet> wrote:
> so i thought i could make a superellipsoid and distort it with matrix<...>.

> it should look like the tip of an arrow, only with rounded edges.

  You can only apply linear transformations to an object.
  A linear transformation is a quite limited set of all possible
transformations. In short, when you apply a linear transformation to
an object, all lines in the object which were parallel before the
transformation will be parallel after the transformation. Only these
type of transformations are possible.
  This is not an artificial nor arbitrary limitation. There are
unsurmountable technical reasons why only these transformations are
possible.

  So what you are trying to do is not possible with matrix nor any other
transformation. You'll have to do it by other means (either by modelling
the shape you want explicitly, eg. with a mesh or other similar primitives,
or making an isosurface shaped like you want, which requires a bit of math).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.